package hierarchy

import (
	"gitcode.com/G-YT/iHealth25/server/api/v1"
	"gitcode.com/G-YT/iHealth25/server/middleware"
	"github.com/gin-gonic/gin"
)

type LevelThreeRouter struct {
}

// InitLevelThreeRouter 初始化 LevelThree 路由信息
func (s *LevelThreeRouter) InitLevelThreeRouter(Router *gin.RouterGroup) {
	levelThreeRouter := Router.Group("levelThree").Use(middleware.OperationRecord())
	levelThreeRouterWithoutRecord := Router.Group("levelThree")
	var levelThreeApi = v1.ApiGroupApp.HierarchyApiGroup.LevelThreeApi
	{
		levelThreeRouter.POST("createLevelThree", levelThreeApi.CreateLevelThree)             // 新建LevelThree
		levelThreeRouter.DELETE("deleteLevelThree", levelThreeApi.DeleteLevelThree)           // 删除LevelThree
		levelThreeRouter.DELETE("deleteLevelThreeByIds", levelThreeApi.DeleteLevelThreeByIds) // 批量删除LevelThree
		levelThreeRouter.PUT("updateLevelThree", levelThreeApi.UpdateLevelThree)              // 更新LevelThree
	}
	{
		levelThreeRouterWithoutRecord.GET("findLevelThree", levelThreeApi.FindLevelThree)       // 根据ID获取LevelThree
		levelThreeRouterWithoutRecord.GET("getLevelThreeList", levelThreeApi.GetLevelThreeList) // 获取LevelThree列表
	}
}
